package org.sixlab.googlecode;

import java.util.LinkedList;
/**
 * 
 * @author HundredKG
 * 
 */
public class Queue {

	private LinkedList<Object> list = new LinkedList<Object>();

	public void put(Object object) {
		list.addLast(object);
	}

	public Object get() {
		return list.removeFirst();
	}

	public boolean isEmpty() {
		if (list.size() == 0) {
			return true;
		}
		return false;
	}

	@Override
	public String toString() {
		// TODO 自动生成的方法存根
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
		return null;
	}

}
